added devise hooks to login