Implemented login controller, json, webservice initialization