Configure the security to redirect on the homepage and improve the login template