modify session error

modify login session error in the admin action
apply ajax to submit request

using ajax to submit all the request and receive the json data as the
html output