displayProfile function- shows user profile