add tests and code to prevent NoMethodError: undefined method `split' for nil:NilClass`
Merge pull request #2 from rbCAS/empty-password-field

add tests and code to prevent NoMethodError: undefined method `split' for nil:NilClass`