Updated Application register method to return Application