Implemented login data saving