ticket:5 added login_required and template for login