are you sure you want to validate the logon credential? if yes, you have to develop a service to hand that request. do you have other programming experience? not sure if sap has existing service to help.
use java web app as example, you have to submit your user name&pwd to servlet, where the user name&pwd can be validated.