added devise to log in and out