adding user validation