Fixed email bug in registration form. Was attempting to get email from
cookie when the cookie hadn't been set yet. Got from function parameteer
instead.