added check for login and notifies user of bad creds