Implemented Devise (with errors)