added devise for authentication logic