Log in complete
Got login to work
Error reporting.

Although currently admin.php does not care about the errors, it could be
used later on to figure out what the problem is. Also, on line 168,
while was changed to if, so an else statement can be used.