Minor modifications to Login class