added a decorator for requiring HTTPS, added it to the login view