Implemented end to end functionality for registering and logging in users.