Finished the login procedure

Still needs cleaning up, but overall finished the login procedure. Added
the following:
1) Admins can login despite of being 'frozen'
2) Every wrong login attempt will decrease the value of the username's
invalidLogin value in the database
3) Every time it is decreased a check is executed to check whether the
invalidLogin is equal to zero. If it is, the account is set to frozen