created a current user method and helper

current_user method and helper