conditional not working properly. also added one into usersModel to check for username; will follow up after 1st fixed