added user object creation during login procedure