Fixed error on wrong variable  to  on trying to call clearLoginAttempts()
Formatted userprofile
Included handler for fatal errors
Removed all errors and mysql_query functions