Implemented handling of login errors from backend.
Implemented registration web method.