adding security related unit tests to the user model
Merge pull request #663 from lirantal/enhancement-user-model-security-tests

Enhancement - Adding more unit tests for the user model, focusing on security aspects