Improved login error handling. Removed the domain from the prepare methods for canvas kit. Added the domain as a param for user login