bug with public group assigment to useres not logged; refactoring auth.php and functions move to Onelife_Functions class;