update class user and function loginIn