updates to login and reg