register and login users

work in progress