Reducing the style code of login and register.