Validation check for loans and savings for client or group status

This pull contains fixes for mifosx-597, mifosx-598, mifosx-600