little fixes for localhost, clearing registration data