Added a user authentication with Devise. Fixed some bugs with showing candidates index.