add error handling, rewrite create user action, fix retrieving user_id after user saving