added empty string validation
fixed a bug in user update method