When trying to login a user with a special password for example: Password@123, the script would return an error saying the password was wrong.
I removed "or !ctype_alnum($pass)" from the login section which allows users to login and register with html chars in their passwords.