implemented @current_user functionality