def authenticate(username, password):
    """
    Returns the user payload (dict) if login is valid else returns False.
    """
    if username == "test" and password == "test":
        user_payload = {"username": username}
        return user_payload
    else:
        return False