Updated the LoginHandler

Updated the LoginHandler, by Mod Demian