solved the bad access memory error;
made global class LoginInfo to be accessed for the logged in user informations