added confirm message and validates for user form