Updated Logged In Only Functionality