employee profile error checking