Add Login and Logout functionalities. [TODO] perfect views.