Modal error fix, redirect on sign in, html format