main page pop ups, redirect page after log-in, enter and escape keypress functns on sign-in/registration