def password(password_str):
    """Checks if password length is greater than 4, else raises error"""
    if len(password_str) > 4:
        return password_str
    else:
        raise ValueError('Invalid password')