registration form update, handling array values in registerUser