Implementing authentication, registration and JWT