moving the loginName method to the user service
extract method for role checkout and pull up to base class