added check email and username api call