Refactor login in test
Add validators for browsers