#JC-1622:
* Added correct redirect after login from errors page