added delete account(deletes the user which is logged in) function and fxed minor issues