added a new hook after user login