added to log in and out ability.