added more logic to the authentication, added certain routes and schemas