There was a bug security issue in php login system if user change type hidden option in form they could register as admin but now after adding following check in register_user function in file users.php inside classes php login and user management system with message center is secure for attacks. Happy coding i always appreciate your suggestions and recommendations thanks.