added missing return statement to login.py (with Alex)