Added generic submit button click function

Starting to set up authentication or username and password to make ajax
call.