Solved bug that allowed unapproved users to login