reponse format changed and exception handling applied and also basic validation also