Fixed login textbox type check by making it case-insensitive