fixing bug in create user template and controller