added guts to register page