Added the login form and with login and logout functions