added checks and finished user creation workflow