Cleaned up PHP code for user login in preparation for grade distribution