Added user authentication, relates to issue #73.
- New function in users
- Tests for new function
Fixed UUID generation function, resolves issue #74.