Added support for spring security and login form.