Fix a bug on login page when browser fill automatically the authentication form values and refactor.