Implemented devise for users and changed the buttons