added checking if exist user with username before adding or updating use...

...r