implemented validation for empty field in register window