added isset to fix signup login, fixed other minor issues