Fixed some things in the login and objecthandler