added account creation and login validation