Login and Registering finally works