def preprocess_gender(gender):
    """
    Function preprocesses the input gender from the register page,
    Returns 1 for male, 2 for female and 3 for other
    """
    if gender == "male":
        return 1
    elif gender == "female":
        return 2
    elif gender == "other":
        return 3