Added template and template call for login, private and public
fixed view creation