added the application registration procedure

Application registration and authentication procedure is added to the
application