added error checking to input and login, will add more if i find places i need to