Implemented devise for user management