corrected after testing
verified jasmine tests for user module