fixed email bug. email is now in db