Created unit tests for creating a user and validating password. Made changes in API as far as session deletion, which may cause problems. However, the test was having issues without the change, so I made it for now.