- fixed checking empty name field