Fix bugs in Sign-in and Error pages