Converted page access errors to use flash. Changed login to username.