Commit changes in loginActivity