some work for the user views
register and login views