api
added 400 error handling to authentication and add auth to swagger
finished security
Configured error handling for registration