adds validation to create edit view of users

Signed-off-by: JerinJ <jerinj@cybage.com>