fix login and input-checking
ditto