Commiting after registering and login functionality.