commiting logic for successful account creation and login validation