Login Cleanup

Someone please fix the PHP! D: