added authentification helpers, user model