Modifications in login and security filter