added user validation