Rebuild registration and login page