ams login under process..

detabase connection has some prob.. need to finish..