Refactor authentication process

* Modularize forms
* Avoid double redirection
* Rename methods to be consistent
* Fix bad use of `redirect_to` instead of `render`
* Remove logout confirmation dialog