Fixed error where dashboard page was rendering inside the login page.

Changed response string from login post route to 'false'
Wrote if statement in jquery to check if response is false.
If false, append login error message.
If not false redirect to the '/users/index' route.

Moved <% end %> to correct location in users/index.erb