Saves login now and fixes bug