This snippet converts a non-array value into array.
const castArray = val => (Array.isArray(val) ? val : [val]); castArray('foo'); // ['foo'] castArray([1]); // [1]
Username
Password
Remember Me
Email
Username or Email