Miss spelling and code formattting changes
Added authorization checking to check if the user has the credentials to use the services and formatted code to make it more readable.
Fix save policy bug for getting data from the html form.