Fix flash error on login