Fix authentication views.

Login and logout