fix login, add use validation, done with prototyping