def check_search_account_options(val, home):
    """Check if current account option is valid."""
    try:
        # Change option to integer.
        val = int(val)

        # Check if option is in range.
        if val <= 0 or val > 5:
            print('*********************************')
            print('Not an option, please try again.\n')
            return val, home
        home = False
        return val, home
    except ValueError:
        # Option is not an integer.
        home = True
        print('*********************************')
        print('Please enter an integer 1-5.\n\n\n')
        return val, home