Fixed Signout Feature to check if user is logged in prior to setting object to nil