Updated login api
Added support for parsing Http 400 errors and their codes for easy handling in the Listeners