LoginFilter modified to send redirect when login is done with parameters and to return a 403 error when accesing Rest API without authorization.