Implemented devise authentication