JC-1545 Fixed redirect to login page for anonymous users.
JC-1550 Fixed handle error on going to /j_spring_security_check.