fixed session, partly atleast... fixed user_model sql-query wrong foreign key for user_profiles