fixed sessions and dried up my code