Changed the methods of user login event