Serverhandler: corrected sessions and added user login through mysql